<?php

class ActionsFactory {
    
    static public function createAction($type) {
        switch ($type) {
            case Action::Petition:
                return new Petition();
            case Action::Survey:
                return new Survey();
            case Action::Deliberation;
                return new Deliberation();
            case Action::Poll():
                return new Poll();
            default:
                return NULL;
        }
    }    
}

?>